import { useUserStore } from "@/stores/userinfo"
import request from "@/utils/request"
export function getRules(params) {
    return request({
        url: '/push_rule/',
        method: 'get',
        params
    })
}

export function addRule(data) {
    return request({
        url: '/push_rule/',
        method: 'post',
        data
    })
}

export function updateRule(data) {
    return request({
        url: '/push_rule/',
        method: 'patch',
        data
    })
}

export const deleteRule = (data) => {
    return request.delete(`/push_rule/`, {
        data
    })
}